reading-notes

About Linear Regression

Scikit-learn

Important functions while fitting a linear regression model are:

1) lm.fit() -> fits a linear model

2) lm.predict() -> Predict Y using the linear model with estimated coefficients

3) lm.score() -> Returns the coefficient of determination (R^2). A measure of how well observed outcomes are replicated by the model, as the proportion of total variation of outcomes explained by the model.

Residual Plots

More about Linear Regression type

Simple linear regression 1 dependent variable (interval or ratio), 1 independent variable (interval or ratio or dichotomous)